import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'element-plus/dist/index.css'
import '@/style/index.scss'
import installSvg from './icons/index'
import './permission'
// 全局引入element icon
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)

installSvg(app)

app.use(router).use(store).mount('#app')
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component('icon-' + key.toLocaleLowerCase(), component)
}
